define(["app", "angular", "services/BaseService"], function(app, angular) {
	
	var deps = ["$http", "BaseService"];
	
	function voicePlayResource($http, BaseService) {
        return initResource($http, BaseService.restfulUrl + "yokiCommon/", BaseService.formHeader);
    }
	
	var postHeader = {
	        "Content-Type" : "application/x-www-form-urlencoded;charset=utf-8"
	};
	
	function initResource($http, preUrl,formHeader) {
        return {
            queryVoiceById: function (fileId) {
                return $http.get(preUrl + "queryVoiceByFileId", {
                    params: {
                    	fileId: fileId
                    }
                });
            },
        };
        
    }
	voicePlayResource.$inject = deps;
	app.lazy.factory("VoicePlayResource", voicePlayResource);
});
